/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.req.GetTrainRequest;
import com.xy.biz.ts.domain.resp.GetTrainFlowHandleResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;
import com.xy.biz.ts.domain.bo.TrainFlowHandleBO;
import com.xy.biz.ts.domain.query.TrainFlowHandleQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-6-28
 */
public interface TrainFlowHandleService {
	
	/**
	 * 保存
	 *
	 * @param trainFlowHandleBO
	 */
	Result<?> saveTrainFlowHandle(TrainFlowHandleBO trainFlowHandleBO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllTrainFlowHandle(Collection<TrainFlowHandleBO> collection);
	
	/**
	 * 更新
	 *
	 * @param trainFlowHandleBO
	 */
	Result<?> updateTrainFlowHandle(TrainFlowHandleBO trainFlowHandleBO);
	
	/**
	 * 删除
	 *
	 * @param trainFlowHandleId
	 */
	Result<?> deleteTrainFlowHandle(Long trainFlowHandleId);
	
	/**
	 * 查找一个
	 *
	 * @param trainFlowHandleId
	 * @return 
	 */
	TrainFlowHandleBO getTrainFlowHandle(Long trainFlowHandleId);
	
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<TrainFlowHandleBO> listTrainFlowHandleById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request trainId
	 */
	Result<List<GetTrainFlowHandleResponse>>  listTrainFlowNode(GetTrainRequest request);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<TrainFlowHandleBO> listTrainFlowHandle(TrainFlowHandleQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countTrainFlowHandle(TrainFlowHandleQuery query);
	
}
